<!DOCTYPE html>
<html>
  <dialog open>
    <form method="dialog">
      <input type="text">
      <button type="submit" value="foo">提交</button>
    </form>
  </dialog>
  
</html>